import { request } from './axios'
import apiList from './apiList';

export const userLogin = (data, params) => {
    return request({
        url: apiList.user.userLogin,
        data,
        ...params,
    });
};
export const getLoginId = (data, params) => {
    return request({
        url: apiList.user.getLoginId,
        data,
        ...params,
    });
};

// export const getLoginCode = (data, params) => {
//     console.log(data);
//     return request({
//         url: apiList.user.getLoginCode,
//         data,
//         type: 'GET',
//         ...params,
//     });
// };

export const refreshLoginInfo = (data, params) => {
    return request({
        url: apiList.user.refreshLoginInfo,
        data,
        ...params
    });
}
